package utilities.convenience;

/** <code>Pair</code><br>
 * <br>
 * A very simple generic that keeps track of two objects.<br>
 * The classes specified for pairing can be of the same class.<br>
 * 
 * @author CoconutTank
 *
 * @param <A>
 * @param <B>
 */
public class Pair<A, B>
{
	protected A a;
	protected B b;
	
	/** <code>Pair</code><br>
	 * <br>
	 * Puts two items of class A and class B together.<br>
	 * 
	 * @param itemA: any object of class <code>A</code>
	 * @param itemB: any object of class <code>B</code>
	 */
	public Pair(A itemA, B itemB)
	{
		a = itemA;
		b = itemB;
	}
	
	/** <code>getA</code><br>
	 * <br>
	 * Returns the <code>A</code> element of this pair.
	 * 
	 * @return A
	 */
	public A getA()
	{
		return a;
	}
	
	/** <code>getB</code><br>
	 * <br>
	 * Returns the <code>B</code> element of this pair.
	 * 
	 * @return B
	 */
	public B getB()
	{
		return b;
	}
}
